package cn.wsalix.biz.service;

import java.util.List;
import java.util.Observer;

import cn.anlaser.service.ParentService;
import cn.wsalix.biz.entity.Category;
import cn.wsalix.biz.form.CategoryForm;
import cn.wsalix.biz.repository.CategoryRepository;
import cn.wsalix.biz.type.CatTypeEnum;

public interface CategoryService extends
		ParentService<CategoryForm, CategoryRepository, Category>, Observer {
	public Category findByCode(String code);

	public List<Category> findSubsByCode(String parentCode);
	
	public List<Category> findSubsById(Long parent);

	public Category getNew(Long shopId,CatTypeEnum catType);

	public List<Category> findByShopId(Long shopId);

	public List<Category> findByUnShopId(Long shopId, Long id);

}
